<?php

use app\components\BaseDetailView;
use app\helpers\UserHelper;
use app\models\Group;
use yii\helpers\ArrayHelper;

/* @var $model Group */
?>
<?= BaseDetailView::widget([
    'model' => $model,
    'attributes' => [
        'group_num',
        ['attribute' => 'group_type', 'value' => ArrayHelper::getValue(UserHelper::$groupType, $model['group_type'])],
        ['attribute' => 'group_priority', 'value' => ArrayHelper::getValue(UserHelper::$userPriority, $model['group_priority'])],
        'create_time:datetime',
    ],
]) ?>